<template>
  <div class="definite">
    <u-navbar
      :is-back="true"
      :custom-back="BackM"
      title="买卖宝明细"
      back-text=""
    >
      <view
        class="slot-right"
        style="width: 100%; display: flex; justify-content: flex-end"
      >
        <img
          @click="goSettingM"
          style="width: 1rem; padding: 1rem"
          src="../../../style/image/my/A27.png"
          alt=""
        />
      </view>
    </u-navbar>
    <div style="padding: 1rem; background: #ffffff; margin-bottom: 0.2rem">
      <div class="now">当前收益(元)</div>
      <div class="money">9800.00</div>
      <div class="time">上次结算时间为2019.09.15</div>
    </div>
    <div style="padding: 0.6rem; background: #ffffff">
      <span class="record">订单记录</span>
      <span class="img">
        <img @click="goSettingM" src="../../../style/image/my/A29.png" alt="" />
        <span style="font-size:0.65rem;color:#000000">2019.10</span>
      </span>
    </div>
    <div style="padding: 3rem 5rem 0 5rem; text-align: center">
      <img
        style="width: 6rem; height: 6rem"
        src="../../../style/image/my/A28.png"
        alt=""
      />
      <div style="color: #999999; font-size: 0.65rem">当前暂无订单明细</div>
    </div>
  </div>
</template>

<script lang='ts' >
import { Component, Prop, Vue, Watch, Emit } from "vue-property-decorator";

@Component({
  //   @Component  是一个装修器   不可以在下面写语句
  name: "test",
})
export default class extends Vue {
  @Prop({
    type: String, // 父组件传递给子组件的数据类型
    required: false, // 是否必填
    default: " ", // 默认值， 如果传入的是 Object，则要 default: ()=>({}) 参数为函数
  })
  msg!: string;

  created() {}

  mounted() {
    //  console.log('父组件传递的参数:',this.$parent)   //暂时不考虑
    //  uni.navigateTo({
    // url: './selectBusin'
    // });
  }
}
</script>

<style  scoped>
.definite {
  font-family: PingFang SC;
  background: #f3f5f7;
  height: 100%;
}
.now {
  color: #000000;
  font-size: 0.8rem;
  text-align: center;
  font-weight: 400;
  font-family: PingFang SC;
  margin-bottom: 0.7rem;
}
.money {
  color: #02af74;
  font-size: 0.9rem;
  text-align: center;
  font-weight: bold;
  font-family: PingFang SC;
  margin-bottom: 0.7rem;
}
.time {
  font-size: 0.7rem;
  text-align: center;
  font-family: PingFang SC;
  font-weight: 400;
  color: #666666;
}
.record {
  color: #000000;
  font-size: 0.8rem;
  font-weight: 400;
  font-family: PingFang SC;
}
.img {
  float: right;
  display: flex;
  align-items: center;
}
.img img {
  width: 0.7rem;
  height: 0.7rem;
  padding-right: 0.4rem;
}
uni-page-body {
  height: 100% !important;
}
</style>